@import './colors';
@import './mixins/mixins';
@import './buttons';

.field,
.field-label,
.field-content,
.field-input,
.field-radios-group,
.field-radio,
.field-radio-label {
  margin: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.field-view-label,
.field-input-icon,
.field-radio-icon {
  overflow: hidden;
  position: absolute;
  z-index: 2;
}

.field {
  margin: 10px;
}

.field-label {
  color: $light-gray;
  display: block;
  height: 40px;
  line-height: 40px;
}

.field-input,
.field-textarea {
  display: inline-block;
  font-size: 14px;
  position: relative;
  width: 100%;
}

.field-textarea-text,
.field-input-text {
  @include radius(3px);
  appearance: none;
  background: $white none;
  border: 1px solid $border-color;
  box-sizing: border-box;
  color: $gray;
  display: inline-block;
  font-size: inherit;
  height: 40px;
  line-height: 40px;
  outline: none;
  padding: 0 10px;
  transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
  width: 100%;

  &:focus {
    border-color: $primary;
  }
}

.field-time-input,
.field-date-input {
  .field-input-text {
    padding-right: 30px;
  }
}

.field-textarea-text {
  font-size: 13px;
  line-height: 20px;
  min-height: 80px;
  padding-bottom: 5px;
  padding-top: 5px;
}

.field-input-icon {
  @include button(30px, 40px, 14px);
  cursor: pointer;
  right: 0;
  top: 0;
}

.field-icon-checked {
  .icon-calendar {
    color: $primary;
  }
}

.field-radios-group {
  margin: 0;
  min-height: 40px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.field-radio {
  cursor: pointer;
  float: left;
  height: 40px;
  margin: 0 10px 0 0;

  i {
    &.icon-radio-checked2 {
      display: none;
    }
  }
}

.field-radio-icon {
  @include button(30px, 40px, 20px, $light-gray, $primary);
  cursor: pointer;
  left: 0;
  top: 0;
}

.field-radio-checked {
  .field-radio-icon {
    @include button(30px, 40px, 20px, $primary, $primary);
  }

  i {
    &.icon-radio-unchecked {
      display: none;
    }

    &.icon-radio-checked2 {
      display: block;
    }
  }

  .field-radio-label {
    color: $primary;
  }
}

.field-radio-label {
  color: $light-gray;
  cursor: pointer;
  display: block;
  line-height: 40px;
  margin-left: 30px;
}

.field-option {
  cursor: pointer;
  float: left;
  margin: 0;
  overflow: hidden;
}

.field-view-label {
  left: 0;
  top: 0;
  width: 80px;
}

.field-view-text {
  color: $gray;
  line-height: 40px;
  margin: 0 0 0 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field-view-content {
  color: $gray;
  line-height: 150%;
}

.field-calendar {
  .cal-md {
    height: 240px;
    margin-top: 5px;
  }

  .cal-hd {
    border-bottom: 0;
  }
}

.field-levels,
.field-templates,
.field-template-image,
.field-template-text,
.field-theme-color,
.field-theme-text {
  margin: 0 auto;
  overflow: hidden;
}

.field-level {
  color: $light-gray;
  text-align: center;
  width: 25%;
}

.field-view-level {
  @include button(20px, 40px, 16px);
  display: inline-block;
}

.field-level-spades {
  &:hover {
    color: $red;
  }
}

.field-level-heart {
  &:hover {
    color: $pink;
  }
}

.field-level-clubs {
  &:hover {
    color: $primary;
  }
}

.field-level-diamonds {
  &:hover {
    color: $green;
  }
}

.field-level-checked {
  &.field-level-spades {
    color: $red;

    &:hover {
      color: $red;
    }
  }

  &.field-level-heart {
    color: $pink;

    &:hover {
      color: $pink;
    }
  }

  &.field-level-clubs {
    color: $primary;

    &:hover {
      color: $primary;
    }
  }

  &.field-level-diamonds {
    color: $green;

    &:hover {
      color: $green;
    }
  }

  .icon-spades {
    color: $red;
  }

  .icon-heart {
    color: $pink;
  }

  .icon-clubs {
    color: $primary;
  }

  .icon-diamonds {
    color: $green;
  }
}

.field-level-icon {
  font-size: 16px;
}

.field-level-text {
  font-size: 13px;
  height: 16px;
  line-height: 16px;
  margin: 7px auto 0;
  overflow: hidden;
}

.field-themes,
.field-templates {
  .field-option-checked {
    .field-template-image {
      border-color: $primary;
    }

    .field-theme-text,
    .field-template-text {
      color: $primary;
      font-weight: bold;
    }
  }
}

.field-template {
  width: 50%;
}

.field-template-image,
.field-template-text {
  margin: 0 auto;
  overflow: hidden;
}

.field-template-image {
  border: 1px solid $border-color;
  height: 51px;
  width: 130px;
}

.field-template-text,
.field-theme-text {
  color: $light-gray;
  height: 40px;
  line-height: 40px;
  text-align: center;
}

.field-theme {
  width: 25%;
}

.field-theme-color {
  height: 50px;
  width: 50px;

  &.theme-blue {
    background-color: $theme-blue;
  }

  &.theme-green {
    background-color: $theme-green;
  }

  &.theme-purple {
    background-color: $theme-purple;
  }

  &.theme-red {
    background-color: $theme-red;
  }

  &.theme-indigo {
    background-color: $theme-indigo;
  }

  &.theme-dark-purple {
    background-color: $theme-dark-purple;
  }

  &.theme-pink {
    background-color: $theme-pink;
  }

  &.theme-teal {
    background-color: $theme-teal;
  }
}
